﻿// This is the main screen that will
// hold every window, object, text, etc.
// any updates to any other class from here on in
// will be done here. Also the NeoForce Manager will be
// pass into here as well.

using System;
using System.Collections.Generic;
using System.Threading;
using System.Net.Sockets;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using TomShane.Neoforce.Controls;

namespace Madrigal
{

    public enum LoginError
    {

    }

    class NeuzScreen : GameScreen
    {
        ContentManager content;
        SpriteFont gameFont;
        Manager manager;

        

        public NeuzScreen(Manager NeoManager)
        {
            manager = NeoManager;
        }

        public override void LoadContent()
        {
            if (content == null)
                content = new ContentManager(ScreenManager.Game.Services, "Content");

            base.LoadContent();
        }

        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            if (IsActive)
            {
                manager.Update(gameTime);
            }
        }

        public override void HandleInput(InputState input)
        {

        }

        public override void Draw(GameTime gameTime)
        {
            manager.BeginDraw(gameTime);

            manager.EndDraw();
        }
    }
}
